package com.project.restaurant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
* <p>
*
* </p>
*
* @author 作者
* @since 2022-10-11
*/
@Getter
@Setter
@Accessors(chain = true)
@TableName("r_meal_type")
public class MealType extends Model<MealType> {

private static final long serialVersionUID = 1L;

    /**
    * 餐点类型id
    */
    @ApiModelProperty(value = "餐点类型id")
    @TableId(value = "meal_type_id", type = IdType.ASSIGN_ID)
    private Integer mealTypeId;

    /**
    * 餐点类型
    */
    @ApiModelProperty(value = "餐点类型名")
    private String mealType;


    @Override
    public Serializable pkVal() {
    return this.mealTypeId;
    }

}
